/**
 * Created by gongxun on 16/12/22.
 */


var HallUserMessageActionResponseResponse = function(){
    var that = new GameResponseBase();

    that.handle = function (binary, msgid) {
        that.loadMessage(binary, msgid);

        var code = that.msg.code;
        if (code == 0){
            //删除消息
            mo.userMessage.removeMsgId(that.msg.msg_id);

            if (that.msg.action == 2){
                var price = "";
                // var items = json_params.items.split(",");
                // var items_num = json_params.items_num.split(",");
                // for (var i = 0; i < items.length; i++){
                //     price += (mo.gameHelper.getItemIdForCHS(items[i]) + "X" + items_num[i]);
                //     if (i != items.length - 1){
                //         price += "  ";
                //     }
                // }

                mo.showRoomMsgShow("领取成功 " + price);
            }else{
                mo.showRoomMsgShow("删除成功");
            }
        }else{
            mo.showRoomMsgShow("操作失败 错误代码:" + code);
        }
    };

    return that;
};